/* 严格按三栏布局重构 */
:root {
    --tech-blue: #007bff;
    --cyber-purple: #6f42c1;
    --light-bg: #f5f5f5;
    --menu-width: 20vw;
    --content-width: 78vw;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--light-bg);
    color: #333;
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
}

/* 头部区域 */
.header {
    height: 120px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,123,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header h1 {
    color: var(--tech-blue);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 500;
}

.header p {
    color: #666;
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* 主体容器 */
.main-container {
    display: flex;
    flex: 1;
    position: relative;
    margin: 20px 0;
}

/* 左侧菜单 (严格1/5宽度) */
.menu-panel {
    width: var(--menu-width);
    min-width: 250px;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.menu-item {
    background: rgba(0,123,255,0.05);
    border: 1px solid rgba(20, 92, 45, 0.15);
    color: var(--tech-blue);
    margin: 10px 0;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background: rgba(0,123,255,0.1);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
    border-color: rgba(0,123,255,0.3);
}

.menu-item i {
    margin-right: 10px;
    width: 25px;
}

/* 内容区域 */
.content-panel {
    width: var(--content-width);
    background: #ffffff;
    margin: 0 20px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.content-header {
    border-bottom: 1px solid rgba(0,123,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.content-title {
    color: var(--tech-blue);
    font-size: 1.8rem;
}

/* 页脚 */
.footer {
    height: 50px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    font-size: 0.9rem;
    color: #666;
}

.social-links a {
    color: #666;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--tech-blue);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid rgba(0,243,255,0.2);
    border-top: 4px solid var(--tech-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
